import layout from '@/layout'

export default [
  {
    path: '/city',
    component: layout,
    meta: { title: '城市管理', icon: 'documentation' },
    children: [
      {
        path: 'index',
        name: 'CityIndex',
        component: () => import('@/views/city/index'),
        meta: { title: '城市管理', icon: 'guide' }
      }
    ]
  },
  {
    path: '/shop',
    component: layout,
    meta: { title: '门店管理', icon: 'el-icon-s-home' },
    children: [
      {
        path: 'index',
        name: 'ShopIndex',
        component: () => import('@/views/shop/index'),
        meta: { title: '门店管理', icon: 'el-icon-s-home' }
      }
    ]
  },
  {
    path: '/goods',
    component: layout,
    meta: { title: '产品管理', icon: 'documentation' },
    children: [
      {
        path: 'index',
        name: 'GoodsIndex',
        component: () => import('@/views/goods/index'),
        meta: { title: '产品管理', icon: 'el-icon-goods' }
      },
      {
        path: 'tzl',
        name: 'Tzl',
        component: () => import('@/views/goods/tzl'),
        meta: { title: '天真蓝专区', icon: 'el-icon-goods' }
      }
    ]
  },
  {
    path: '/order',
    component: layout,
    meta: { title: '订单管理', icon: 'documentation' },
    children: [
      {
        path: 'index',
        name: 'OrderIndex',
        component: () => import('@/views/order/index'),
        meta: { title: '订单管理', icon: 'money' }
      }
    ]
  },
  {
    path: '/card',
    component: layout,
    meta: { title: '卡券管理', icon: 'el-icon-money' },
    children: [
      {
        path: 'index',
        name: 'CardIndex',
        component: () => import('@/views/card/index'),
        meta: { title: '卡券中心', icon: 'el-icon-money' }
      }
      // ,
      // {
      //  path: 'import',
      //  name: 'CardImport',
      //  component: () => import('@/views/card/import'),
      //  meta: { title: '卡券导入', icon: 'el-icon-upload2' }
      // }
    ]
  },
  {
    path: '/test',
    component: layout,
    hidden: true,
    meta: { title: '测试页面', icon: 'documentation' },
    children: [
      {
        path: 'index',
        name: 'Index',
        component: () => import('@/views/test/Index'),
        meta: { title: '测试页面', icon: 'el-icon-eleme' }
      }
    ]
  }
]
